home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / inpv10 / macros.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-12-05  |  21.3 KB  |  725 lines

  1. VERSION 2.00
  2. Begin Form Form2 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Typing Macros"
  5.    ClientHeight    =   5760
  6.    ClientLeft      =   30
  7.    ClientTop       =   825
  8.    ClientWidth     =   9375
  9.    ForeColor       =   &H00000000&
  10.    Height          =   6165
  11.    Icon            =   MACROS.FRX:0000
  12.    Left            =   -30
  13.    LinkMode        =   1  'Source
  14.    LinkTopic       =   "Form2"
  15.    MaxButton       =   0   'False
  16.    ScaleHeight     =   5760
  17.    ScaleWidth      =   9375
  18.    Top             =   480
  19.    Width           =   9495
  20.    Begin TextBox mactext 
  21.       BackColor       =   &H00FFFF00&
  22.       Height          =   980
  23.       Left            =   120
  24.       MultiLine       =   -1  'True
  25.       ScrollBars      =   2  'Vertical
  26.       TabIndex        =   55
  27.       TabStop         =   0   'False
  28.       Top             =   4680
  29.       Width           =   9135
  30.    End
  31.    Begin TextBox MACS 
  32.       BackColor       =   &H00FFFF00&
  33.       Height          =   300
  34.       Index           =   12
  35.       Left            =   360
  36.       TabIndex        =   34
  37.       TabStop         =   0   'False
  38.       Top             =   4320
  39.       Width           =   3075
  40.    End
  41.    Begin TextBox MACS 
  42.       BackColor       =   &H00FFFF00&
  43.       Height          =   300
  44.       Index           =   24
  45.       Left            =   3960
  46.       TabIndex        =   43
  47.       TabStop         =   0   'False
  48.       Top             =   3960
  49.       Width           =   3075
  50.    End
  51.    Begin TextBox MACS 
  52.       BackColor       =   &H00FFFF00&
  53.       Height          =   300
  54.       Index           =   11
  55.       Left            =   360
  56.       TabIndex        =   33
  57.       TabStop         =   0   'False
  58.       Top             =   3960
  59.       Width           =   3075
  60.    End
  61.    Begin TextBox MACS 
  62.       BackColor       =   &H00FFFF00&
  63.       Height          =   300
  64.       Index           =   23
  65.       Left            =   3960
  66.       TabIndex        =   54
  67.       TabStop         =   0   'False
  68.       Top             =   3600
  69.       Width           =   3075
  70.    End
  71.    Begin TextBox MACS 
  72.       BackColor       =   &H00FFFF00&
  73.       Height          =   300
  74.       Index           =   10
  75.       Left            =   360
  76.       TabIndex        =   32
  77.       TabStop         =   0   'False
  78.       Top             =   3600
  79.       Width           =   3075
  80.    End
  81.    Begin CommandButton cancelbut 
  82.       Caption         =   "Done"
  83.       Height          =   740
  84.       Left            =   7080
  85.       TabIndex        =   46
  86.       TabStop         =   0   'False
  87.       Top             =   3480
  88.       Width           =   2175
  89.    End
  90.    Begin TextBox MACS 
  91.       BackColor       =   &H00FFFF00&
  92.       Height          =   300
  93.       Index           =   22
  94.       Left            =   3960
  95.       TabIndex        =   42
  96.       TabStop         =   0   'False
  97.       Top             =   3240
  98.       Width           =   3075
  99.    End
  100.    Begin TextBox MACS 
  101.       BackColor       =   &H00FFFF00&
  102.       Height          =   300
  103.       Index           =   9
  104.       Left            =   360
  105.       TabIndex        =   31
  106.       TabStop         =   0   'False
  107.       Top             =   3240
  108.       Width           =   3075
  109.    End
  110.    Begin TextBox MACS 
  111.       BackColor       =   &H00FFFF00&
  112.       Height          =   300
  113.       Index           =   21
  114.       Left            =   3960
  115.       TabIndex        =   41
  116.       TabStop         =   0   'False
  117.       Top             =   2880
  118.       Width           =   3075
  119.    End
  120.    Begin TextBox MACS 
  121.       BackColor       =   &H00FFFF00&
  122.       Height          =   300
  123.       Index           =   8
  124.       Left            =   360
  125.       TabIndex        =   30
  126.       TabStop         =   0   'False
  127.       Top             =   2880
  128.       Width           =   3075
  129.    End
  130.    Begin TextBox MACS 
  131.       BackColor       =   &H00FFFF00&
  132.       Height          =   300
  133.       Index           =   20
  134.       Left            =   3960
  135.       TabIndex        =   40
  136.       TabStop         =   0   'False
  137.       Top             =   2520
  138.       Width           =   3075
  139.    End
  140.    Begin TextBox MACS 
  141.       BackColor       =   &H00FFFF00&
  142.       Height          =   300
  143.       Index           =   7
  144.       Left            =   360
  145.       TabIndex        =   29
  146.       TabStop         =   0   'False
  147.       Top             =   2520
  148.       Width           =   3075
  149.    End
  150.    Begin CommandButton okbut 
  151.       Caption         =   "Save Macros"
  152.       Height          =   740
  153.       Left            =   7080
  154.       TabIndex        =   44
  155.       TabStop         =   0   'False
  156.       Top             =   2400
  157.       Width           =   2175
  158.    End
  159.    Begin TextBox MACS 
  160.       BackColor       =   &H00FFFF00&
  161.       Height          =   300
  162.       Index           =   19
  163.       Left            =   3960
  164.       TabIndex        =   39
  165.       TabStop         =   0   'False
  166.       Top             =   2160
  167.       Width           =   3075
  168.    End
  169.    Begin TextBox MACS 
  170.       BackColor       =   &H00FFFF00&
  171.       Height          =   300
  172.       Index           =   6
  173.       Left            =   360
  174.       TabIndex        =   28
  175.       TabStop         =   0   'False
  176.       Top             =   2160
  177.       Width           =   3075
  178.    End
  179.    Begin TextBox MACS 
  180.       BackColor       =   &H00FFFF00&
  181.       Height          =   300
  182.       Index           =   18
  183.       Left            =   3960
  184.       TabIndex        =   53
  185.       TabStop         =   0   'False
  186.       Top             =   1800
  187.       Width           =   3075
  188.    End
  189.    Begin TextBox MACS 
  190.       BackColor       =   &H00FFFF00&
  191.       Height          =   300
  192.       Index           =   5
  193.       Left            =   360
  194.       TabIndex        =   27
  195.       TabStop         =   0   'False
  196.       Top             =   1800
  197.       Width           =   3075
  198.    End
  199.    Begin TextBox MACS 
  200.       BackColor       =   &H00FFFF00&
  201.       Height          =   300
  202.       Index           =   17
  203.       Left            =   3960
  204.       TabIndex        =   38
  205.       TabStop         =   0   'False
  206.       Top             =   1440
  207.       Width           =   3075
  208.    End
  209.    Begin TextBox MACS 
  210.       BackColor       =   &H00FFFF00&
  211.       Height          =   300
  212.       Index           =   4
  213.       Left            =   360
  214.       TabIndex        =   26
  215.       TabStop         =   0   'False
  216.       Top             =   1440
  217.       Width           =   3075
  218.    End
  219.    Begin TextBox MACS 
  220.       BackColor       =   &H00FFFF00&
  221.       Height          =   300
  222.       Index           =   16
  223.       Left            =   3960
  224.       TabIndex        =   37
  225.       TabStop         =   0   'False
  226.       Top             =   1080
  227.       Width           =   3075
  228.    End
  229.    Begin TextBox MACS 
  230.       BackColor       =   &H00FFFF00&
  231.       Height          =   300
  232.       Index           =   3
  233.       Left            =   360
  234.       TabIndex        =   25
  235.       TabStop         =   0   'False
  236.       Top             =   1080
  237.       Width           =   3075
  238.    End
  239.    Begin TextBox MACS 
  240.       BackColor       =   &H00FFFF00&
  241.       Height          =   300
  242.       Index           =   15
  243.       Left            =   3960
  244.       TabIndex        =   36
  245.       TabStop         =   0   'False
  246.       Top             =   720
  247.       Width           =   3075
  248.    End
  249.    Begin TextBox MACS 
  250.       BackColor       =   &H00FFFF00&
  251.       Height          =   300
  252.       Index           =   2
  253.       Left            =   360
  254.       TabIndex        =   24
  255.       TabStop         =   0   'False
  256.       Top             =   720
  257.       Width           =   3075
  258.    End
  259.    Begin CommandButton pastebut 
  260.       Caption         =   "Paste CpBrd to Macro"
  261.       Height          =   380
  262.       Left            =   7080
  263.       TabIndex        =   45
  264.       TabStop         =   0   'False
  265.       Top             =   480
  266.       Width           =   2175
  267.    End
  268.    Begin TextBox MACS 
  269.       BackColor       =   &H00FFFF00&
  270.       Height          =   300
  271.       Index           =   14
  272.       Left            =   3960
  273.       TabIndex        =   35
  274.       TabStop         =   0   'False
  275.       Top             =   360
  276.       Width           =   3075
  277.    End
  278.    Begin TextBox MACS 
  279.       BackColor       =   &H00FFFF00&
  280.       Height          =   300
  281.       Index           =   1
  282.       Left            =   360
  283.       TabIndex        =   23
  284.       TabStop         =   0   'False
  285.       Top             =   360
  286.       Width           =   3075
  287.    End
  288.    Begin TextBox MACS 
  289.       BackColor       =   &H00FFFF00&
  290.       Height          =   300
  291.       Index           =   13
  292.       Left            =   3960
  293.       TabIndex        =   52
  294.       TabStop         =   0   'False
  295.       Top             =   0
  296.       Width           =   3075
  297.    End
  298.    Begin TextBox MACS 
  299.       BackColor       =   &H00FFFF00&
  300.       ForeColor       =   &H00000000&
  301.       Height          =   300
  302.       Index           =   0
  303.       Left            =   360
  304.       TabIndex        =   22
  305.       TabStop         =   0   'False
  306.       Top             =   0
  307.       Width           =   3075
  308.    End
  309.    Begin Label macrosizelabel 
  310.       BackColor       =   &H0080FFFF&
  311.       Height          =   260
  312.       Left            =   6000
  313.       TabIndex        =   48
  314.       Top             =   4320
  315.       Width           =   975
  316.    End
  317.    Begin Label Label2 
  318.       BackColor       =   &H00FFFFFF&
  319.       Caption         =   "Macro Text Size:"
  320.       ForeColor       =   &H00000000&
  321.       Height          =   260
  322.       Left            =   3960
  323.       TabIndex        =   47
  324.       Top             =   4320
  325.       Width           =   1815
  326.    End
  327.    Begin Label Label1 
  328.       Alignment       =   2  'Center
  329.       BackColor       =   &H00C0C0C0&
  330.       BorderStyle     =   1  'Fixed Single
  331.       Caption         =   "M"
  332.       Height          =   300
  333.       Index           =   12
  334.       Left            =   0
  335.       TabIndex        =   12
  336.       Top             =   4320
  337.       Width           =   255
  338.    End
  339.    Begin Label Label1 
  340.       Alignment       =   2  'Center
  341.       BackColor       =   &H00C0C0C0&
  342.       BorderStyle     =   1  'Fixed Single
  343.       Caption         =   "Y"
  344.       Height          =   300
  345.       Index           =   24
  346.       Left            =   3600
  347.       TabIndex        =   21
  348.       Top             =   3960
  349.       Width           =   255
  350.    End
  351.    Begin Label Label1 
  352.       Alignment       =   2  'Center
  353.       BackColor       =   &H00C0C0C0&
  354.       BorderStyle     =   1  'Fixed Single
  355.       Caption         =   "L"
  356.       Height          =   300
  357.       Index           =   11
  358.       Left            =   0
  359.       TabIndex        =   11
  360.       Top             =   3960
  361.       Width           =   255
  362.    End
  363.    Begin Label Label1 
  364.       Alignment       =   2  'Center
  365.       BackColor       =   &H00C0C0C0&
  366.       BorderStyle     =   1  'Fixed Single
  367.       Caption         =   "X"
  368.       Height          =   300
  369.       Index           =   23
  370.       Left            =   3600
  371.       TabIndex        =   51
  372.       Top             =   3600
  373.       Width           =   255
  374.    End
  375.    Begin Label Label1 
  376.       Alignment       =   2  'Center
  377.       BackColor       =   &H00C0C0C0&
  378.       BorderStyle     =   1  'Fixed Single
  379.       Caption         =   "K"
  380.       Height          =   300
  381.       Index           =   10
  382.       Left            =   0
  383.       TabIndex        =   10
  384.       Top             =   3600
  385.       Width           =   255
  386.    End
  387.    Begin Label Label1 
  388.       Alignment       =   2  'Center
  389.       BackColor       =   &H00C0C0C0&
  390.       BorderStyle     =   1  'Fixed Single
  391.       Caption         =   "W"
  392.       Height          =   300
  393.       Index           =   22
  394.       Left            =   3600
  395.       TabIndex        =   20
  396.       Top             =   3240
  397.       Width           =   255
  398.    End
  399.    Begin Label Label1 
  400.       Alignment       =   2  'Center
  401.       BackColor       =   &H00C0C0C0&
  402.       BorderStyle     =   1  'Fixed Single
  403.       Caption         =   "J"
  404.       Height          =   300
  405.       Index           =   9
  406.       Left            =   0
  407.       TabIndex        =   9
  408.       Top             =   3240
  409.       Width           =   255
  410.    End
  411.    Begin Label Label1 
  412.       Alignment       =   2  'Center
  413.       BackColor       =   &H00C0C0C0&
  414.       BorderStyle     =   1  'Fixed Single
  415.       Caption         =   "V"
  416.       Height          =   300
  417.       Index           =   21
  418.       Left            =   3600
  419.       TabIndex        =   19
  420.       Top             =   2880
  421.       Width           =   255
  422.    End
  423.    Begin Label Label1 
  424.       Alignment       =   2  'Center
  425.       BackColor       =   &H00C0C0C0&
  426.       BorderStyle     =   1  'Fixed Single
  427.       Caption         =   "I"
  428.       Height          =   300
  429.       Index           =   8
  430.       Left            =   0
  431.       TabIndex        =   8
  432.       Top             =   2880
  433.       Width           =   255
  434.    End
  435.    Begin Label Label1 
  436.       Alignment       =   2  'Center
  437.       BackColor       =   &H00C0C0C0&
  438.       BorderStyle     =   1  'Fixed Single
  439.       Caption         =   "U"
  440.       Height          =   300
  441.       Index           =   20
  442.       Left            =   3600
  443.       TabIndex        =   18
  444.       Top             =   2520
  445.       Width           =   255
  446.    End
  447.    Begin Label Label1 
  448.       Alignment       =   2  'Center
  449.       BackColor       =   &H00C0C0C0&
  450.       BorderStyle     =   1  'Fixed Single
  451.       Caption         =   "H"
  452.       Height          =   300
  453.       Index           =   7
  454.       Left            =   0
  455.       TabIndex        =   7
  456.       Top             =   2520
  457.       Width           =   255
  458.    End
  459.    Begin Label Label1 
  460.       Alignment       =   2  'Center
  461.       BackColor       =   &H00C0C0C0&
  462.       BorderStyle     =   1  'Fixed Single
  463.       Caption         =   "T"
  464.       Height          =   300
  465.       Index           =   19
  466.       Left            =   3600
  467.       TabIndex        =   17
  468.       Top             =   2160
  469.       Width           =   255
  470.    End
  471.    Begin Label Label1 
  472.       Alignment       =   2  'Center
  473.       BackColor       =   &H00C0C0C0&
  474.       BorderStyle     =   1  'Fixed Single
  475.       Caption         =   "G"
  476.       Height          =   300
  477.       Index           =   6
  478.       Left            =   0
  479.       TabIndex        =   6
  480.       Top             =   2160
  481.       Width           =   255
  482.    End
  483.    Begin Label Label1 
  484.       Alignment       =   2  'Center
  485.       BackColor       =   &H00C0C0C0&
  486.       BorderStyle     =   1  'Fixed Single
  487.       Caption         =   "S"
  488.       Height          =   300
  489.       Index           =   18
  490.       Left            =   3600
  491.       TabIndex        =   50
  492.       Top             =   1800
  493.       Width           =   255
  494.    End
  495.    Begin Label Label1 
  496.       Alignment       =   2  'Center
  497.       BackColor       =   &H00C0C0C0&
  498.       BorderStyle     =   1  'Fixed Single
  499.       Caption         =   "F"
  500.       Height          =   300
  501.       Index           =   5
  502.       Left            =   0
  503.       TabIndex        =   5
  504.       Top             =   1800
  505.       Width           =   255
  506.    End
  507.    Begin Label Label1 
  508.       Alignment       =   2  'Center
  509.       BackColor       =   &H00C0C0C0&
  510.       BorderStyle     =   1  'Fixed Single
  511.       Caption         =   "R"
  512.       Height          =   300
  513.       Index           =   17
  514.       Left            =   3600
  515.       TabIndex        =   16
  516.       Top             =   1440
  517.       Width           =   255
  518.    End
  519.    Begin Label Label1 
  520.       Alignment       =   2  'Center
  521.       BackColor       =   &H00C0C0C0&
  522.       BorderStyle     =   1  'Fixed Single
  523.       Caption         =   "E"
  524.       Height          =   300
  525.       Index           =   4
  526.       Left            =   0
  527.       TabIndex        =   4
  528.       Top             =   1440
  529.       Width           =   255
  530.    End
  531.    Begin Label Label1 
  532.       Alignment       =   2  'Center
  533.       BackColor       =   &H00C0C0C0&
  534.       BorderStyle     =   1  'Fixed Single
  535.       Caption         =   "Q"
  536.       Height          =   300
  537.       Index           =   16
  538.       Left            =   3600
  539.       TabIndex        =   15
  540.       Top             =   1080
  541.       Width           =   255
  542.    End
  543.    Begin Label Label1 
  544.       Alignment       =   2  'Center
  545.       BackColor       =   &H00C0C0C0&
  546.       BorderStyle     =   1  'Fixed Single
  547.       Caption         =   "D"
  548.       Height          =   300
  549.       Index           =   3
  550.       Left            =   0
  551.       TabIndex        =   3
  552.       Top             =   1080
  553.       Width           =   255
  554.    End
  555.    Begin Label Label1 
  556.       Alignment       =   2  'Center
  557.       BackColor       =   &H00C0C0C0&
  558.       BorderStyle     =   1  'Fixed Single
  559.       Caption         =   "P"
  560.       Height          =   300
  561.       Index           =   15
  562.       Left            =   3600
  563.       TabIndex        =   14
  564.       Top             =   720
  565.       Width           =   255
  566.    End
  567.    Begin Label Label1 
  568.       Alignment       =   2  'Center
  569.       BackColor       =   &H00C0C0C0&
  570.       BorderStyle     =   1  'Fixed Single
  571.       Caption         =   "C"
  572.       Height          =   300
  573.       Index           =   2
  574.       Left            =   0
  575.       TabIndex        =   2
  576.       Top             =   720
  577.       Width           =   255
  578.    End
  579.    Begin Label Label1 
  580.       Alignment       =   2  'Center
  581.       BackColor       =   &H00C0C0C0&
  582.       BorderStyle     =   1  'Fixed Single
  583.       Caption         =   "O"
  584.       Height          =   300
  585.       Index           =   14
  586.       Left            =   3600
  587.       TabIndex        =   13
  588.       Top             =   360
  589.       Width           =   255
  590.    End
  591.    Begin Label Label1 
  592.       Alignment       =   2  'Center
  593.       BackColor       =   &H00C0C0C0&
  594.       BorderStyle     =   1  'Fixed Single
  595.       Caption         =   "B"
  596.       Height          =   300
  597.       Index           =   1
  598.       Left            =   0
  599.       TabIndex        =   1
  600.       Top             =   360
  601.       Width           =   255
  602.    End
  603.    Begin Label Label1 
  604.       Alignment       =   2  'Center
  605.       BackColor       =   &H00C0C0C0&
  606.       BorderStyle     =   1  'Fixed Single
  607.       Caption         =   "N"
  608.       Height          =   300
  609.       Index           =   13
  610.       Left            =   3600
  611.       TabIndex        =   49
  612.       Top             =   0
  613.       Width           =   255
  614.    End
  615.    Begin Label Label1 
  616.       Alignment       =   2  'Center
  617.       BackColor       =   &H00C0C0C0&
  618.       BorderStyle     =   1  'Fixed Single
  619.       Caption         =   "A"
  620.       Height          =   300
  621.       Index           =   0
  622.       Left            =   0
  623.       TabIndex        =   0
  624.       Top             =   0
  625.       Width           =   255
  626.    End
  627. Dim macselected As Integer
  628. Sub cancelbut_Click ()
  629. '-----------------------
  630. OKBut_Click
  631. Form2.Hide
  632. End Sub
  633. Sub Form_Load ()
  634. '----------------
  635. Form2.Show
  636. TextLimit% = 30
  637. For i% = 0 To 24
  638.     Macs(i%).SetFocus
  639.     retVal = SendMessage&(GetFocus(), EM_LIMITTEXT, TextLimit%, 0)
  640.     Macs(i%).text = RTrim$(Macros(i%).Title)
  641. Next i%
  642. TextLimit% = 2000
  643. MacText.SetFocus
  644. retVal = SendMessage&(GetFocus(), EM_LIMITTEXT, TextLimit%, 0)
  645. Macs(0).SetFocus
  646. MacText.text = Macros(0).text
  647. macselected = 0
  648. End Sub
  649. Sub Form_LostFocus ()
  650. OKBut_Click
  651. End Sub
  652. Sub Form_Resize ()
  653. '----------------------
  654. If Windowstate <> 1 Then
  655.     Form2.Height = 6120
  656.     Form2.Width = Screen.Width
  657. End If
  658. End Sub
  659. Sub Form_Unload (Cancel As Integer)
  660. OKBut_Click
  661. End Sub
  662. Sub Label1_Click (index As Integer)
  663. Macs_LostFocus macselected
  664. MacText_LostFocus
  665. macselected = index
  666. MacText.text = ""
  667. MacroSizeLabel.caption = Str$(Len(RTrim$(Macros(index).text)))
  668. MacText.text = RTrim$(Macros(index).text)
  669. MacText.SetFocus
  670. End Sub
  671. Sub MACS_GotFocus (index As Integer)
  672. '-------------------------------------
  673. MacText_LostFocus
  674. Macs_LostFocus macselected
  675. macselected = index
  676. MacText.text = ""
  677. MacroSizeLabel.caption = Str$(Len(RTrim$(Macros(index).text)))
  678. MacText.text = RTrim$(Macros(index).text)
  679. End Sub
  680. Sub MACS_KeyPress (index As Integer, keyascii As Integer)
  681. If keyascii = 9 Then MacText.SetFocus
  682. End Sub
  683. Sub Macs_LostFocus (index As Integer)
  684. Macros(macselected).Title = Macs(macselected).text
  685. End Sub
  686. Sub mactext_Change ()
  687. MacroSizeLabel.caption = Str$(Len(RTrim$(MacText.text)))
  688. End Sub
  689. Sub MacText_LostFocus ()
  690. If (RTrim$(Macros(macselected).Title)) = "" Then
  691.     Macros(macselected).Title = Left$(MacText.text, 30)
  692.     Macs(macselected).text = RTrim$(Macros(macselected).Title)
  693. End If
  694. Macros(macselected).text = MacText.text
  695. End Sub
  696. Sub OKBut_Click ()
  697. '---------------------
  698. SaveIniData
  699. If Puhandle <> 99 Then
  700.     Result% = MhPuKill(Puhandle)
  701.     If Result% <> 0 Then MsgBox "Error, could not kill PU Menu"
  702. End If
  703. MakePuMenus
  704. End Sub
  705. Sub pastebut_Click ()
  706. '-----------------------
  707. Dim Temp As String * 2000
  708. If macselected = 0 Then
  709.     MsgBox "You must selected a macro before Pasting the Clipboard"
  710.     Exit Sub
  711. End If
  712. message$ = "This will set Macro  " + Label1(macselected).caption + "  equal to what is on the Clipboard"
  713. Check% = MsgBox(message$, 1, "CLipBoard Paste")
  714. If Check% = 2 Then Exit Sub
  715. Temp = Left$(ClipBoard.GetText(), 2000)
  716. TT$ = Left$(InputBox$("Enter Macro title, maximum is 30 characters", "MACRO TITLE", (Left$(Temp, 30))), 30)
  717. Macs(macselected).text = RTrim$(TT$)
  718. Macros(macselected).Title = TT$
  719. If Len(Temp) > 2000 Then MsgBox "ClipBoard contains more than 2K Bytes, only the first 2K Bytes will be captured"
  720. MacText.text = ""
  721. MacText.SelText = RTrim$(Temp)
  722. Macros(macselected).text = Temp
  723. MacText.SetFocus
  724. End Sub
  725.